package com.ruoyi.project.purchase.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.purchase.contract.mapper.HtcghtbcxyMapper;
import com.ruoyi.project.purchase.contract.domain.Htcghtbcxy;
import com.ruoyi.project.purchase.contract.service.IHtcghtbcxyService;

/**
 * 采购合同Service业务层处理
 * 
 * @author frank
 * @date 2024-08-20
 */
@Service
public class HtcghtbcxyServiceImpl implements IHtcghtbcxyService 
{
    @Autowired
    private HtcghtbcxyMapper htcghtbcxyMapper;

    /**
     * 查询采购合同
     * 
     * @param htCghtbcxyoid 采购合同主键
     * @return 采购合同
     */
    @Override
    public Htcghtbcxy selectHtcghtbcxyByHtCghtbcxyoid(String htCghtbcxyoid)
    {
        return htcghtbcxyMapper.selectHtcghtbcxyByHtCghtbcxyoid(htCghtbcxyoid);
    }

    /**
     * 查询采购合同列表
     * 
     * @param htcghtbcxy 采购合同
     * @return 采购合同
     */
    @Override
    public List<Htcghtbcxy> selectHtcghtbcxyList(Htcghtbcxy htcghtbcxy)
    {
        return htcghtbcxyMapper.selectHtcghtbcxyList(htcghtbcxy);
    }

    /**
     * 新增采购合同
     * 
     * @param htcghtbcxy 采购合同
     * @return 结果
     */
    @Override
    public int insertHtcghtbcxy(Htcghtbcxy htcghtbcxy)
    {
        return htcghtbcxyMapper.insertHtcghtbcxy(htcghtbcxy);
    }

    /**
     * 修改采购合同
     * 
     * @param htcghtbcxy 采购合同
     * @return 结果
     */
    @Override
    public int updateHtcghtbcxy(Htcghtbcxy htcghtbcxy)
    {
        return htcghtbcxyMapper.updateHtcghtbcxy(htcghtbcxy);
    }

    /**
     * 批量删除采购合同
     * 
     * @param htCghtbcxyoids 需要删除的采购合同主键
     * @return 结果
     */
    @Override
    public int deleteHtcghtbcxyByHtCghtbcxyoids(String[] htCghtbcxyoids)
    {
        return htcghtbcxyMapper.deleteHtcghtbcxyByHtCghtbcxyoids(htCghtbcxyoids);
    }

    /**
     * 删除采购合同信息
     * 
     * @param htCghtbcxyoid 采购合同主键
     * @return 结果
     */
    @Override
    public int deleteHtcghtbcxyByHtCghtbcxyoid(String htCghtbcxyoid)
    {
        return htcghtbcxyMapper.deleteHtcghtbcxyByHtCghtbcxyoid(htCghtbcxyoid);
    }
}
